package chapter2.version2;

import chapter2.Apple;

public class AppleColorPredicate implements ApplePredicate {

    @Override
    public boolean test(Apple apple) {
        return "green".equals(apple.getColor());
    }
}
